home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / pumask.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Pumask(2)                 Oct. 1, 1991                  Pumask(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Pumask - set file and directory creation mask
  7.  
  8. SYNOPSIS
  9.      WORD Pumask( WORD mode );
  10.  
  11. DESCRIPTION
  12.      Pumask changes the file and directory creation mask  of  the
  13.      current process to the unsigned 16 bit quantity specified in
  14.      mode.  The old value of the creation mask is returned. Child
  15.      processes inherit the new value for the mask.
  16.  
  17.      When a new file is created with Fcreate or a  new  directory
  18.      created  with  Dcreate  the  initial access permissions (see
  19.      Fchmod for a description of these)  for  the  newly  created
  20.      file  or  directory are normally set so that all permissions
  21.      are granted (except that execute permission is not  normally
  22.      granted  for  files). The creation mask set by Pumask deter-
  23.      mines which permissions are not to be  granted  by  default.
  24.      Thus,  files created after a Pumask(S_IWOTH|S_IWGRP|S_IXOTH)
  25.      call will be readable by anyone, but writable  only  by  the
  26.      owner;  moreover,  directories created after this call would
  27.      be searchable by the owner and members of  the  same  group,
  28.      but not by anyone else.
  29.  
  30. SEE ALSO
  31.      Dcreate(2), Fchmod(2), Fcreate(2)
  32.  
  33. BUGS
  34.      Pumask doesn't affect explicit Fchmod calls, as  some  might
  35.      expect.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.